<?php

class CF_LookupList {

var $ar_filter;

public function SetFilter(&$filter){
	$this->ar_filter = $filter;
}

public function GetLookupList($column){
		$lookupfunction = 'lookup_' . $column;
		if(method_exists($this,$lookupfunction)){
		return $this->$lookupfunction();
	}
}
 /*
 *
 * Populate the lookup list array into the fieldspec ($spec[$column][$list]) for any columns 
 * Where a lookup function is defined
 *
 */

public function ResolveSpecLists(&$fieldspec){
	foreach($fieldspec AS $column=>$spec){
		$lookupfunction = 'lookup_' . $column;
		if(method_exists($this,$lookupfunction)){
			$fieldspec[$column]['list'] =  $this->$lookupfunction();		
		}
	}
}


}


?>
